package com.yungu.swift.system.finance.dao;

import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.finance.model.dto.FinanceJoinRefundDto;
import org.apache.ibatis.annotations.Param;

/**
 * FinanceRefundMapper数据库操作接口类
 **/

public interface FinanceJoinRefundMapper extends IMapper<FinanceJoinRefundDto> {

    /**
     * 统计（订单ID）
     *
     * @param orderUuid
     * @return
     */
    Long countByOrderUuid(@Param("orderUuid") String orderUuid);

    /**
     * 查询单对象（订单ID）
     *
     * @param orderUuid
     * @return
     */
    FinanceJoinRefundDto queryByOrderUuid(@Param("orderUuid") String orderUuid);
}